package com.hospital.hospitaldrugservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hospital.common.dto.DrugDto;
import com.hospital.hospitaldrugservice.entity.Drug;

/**
 * <p>
 * 药品表 Mapper 接口
 * </p>
 *
 * @author 王晓康
 * @since 2020-10-20
 */
public interface DrugMapper extends BaseMapper<Drug> {

    IPage<Drug> selectPageDto(Page page, DrugDto drugDto);

    void updDrug(DrugDto drugDto);

    Drug getLastDrugnumber();


    void addDrug(DrugDto dto);
}
